<!--
  Generated template for the TihuoApplyPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

	<ion-navbar>
		<ion-title>申请提货</ion-title>
	</ion-navbar>

</ion-header>


<ion-content >
	<div class="apply">
		<div class="step">
			<img src="./assets/imgs/step1.png" alt="" height="120px">
		</div>
		<div class="goods">
			<div class="goods-img">
				<img src="http://game.s.cardtaotao.com/wap/images/{{Data['goods_image']}}" alt="">
			</div>
			<div class="goods-info">
				<span>
					{{Data['goods_name']}}
				</span>
				<span>
					数量：{{Data['goods_num']}}张
				</span>
			</div>
		</div>
		<div  class="quantity"> 
			<div class="num-title">
				<span>
					提货数量
				</span>
			</div>
			<div class="all" (click)="checkAll()">
				<span>
					全选
				</span>
			</div>
			<div>
				<span (click)="quantity(0)">-</span>
				<input type="num" value="{{num}}">
				<span (click)="quantity(1)">+</span>
			</div>
		</div>
		<div class="address" *ngIf="cardType == 'jd'">
			<div class="address-title">
				<span>收货地址</span>
			</div>
			<div class="address-content" (click)="choiceAddress()" *ngIf="isAddress != '3'">
				<span>{{address.true_name}} &nbsp;&nbsp;{{address.mob_phone}}</span>
				<span>{{address.area_info}}</span>
			</div>
			<div class="address-content" (click)="choiceAddress()" *ngIf="isAddress == '3'">
				<span>
					请添加地址
				</span>
			</div>
			<div>
				<span>
					<ion-icon name="arrow-forward"></ion-icon>
				</span>
			</div>
		</div>
		<div class="address" *ngIf="cardType != 'jd'">
			<div class="address-title">
				<span>充值手机号</span>
			</div>
			<div class="phone" >
				<ion-input type="tel" value="{{phone}}" placeholder="请填写充值手机号" max="11"  [(ngModel)]="phone"></ion-input>
				<ion-icon ios="ios-close-circle" md="md-close-circle" (click)="phone =''"></ion-icon>
			</div>
			<div class="phone-notice">
				<span>默认账户绑定号码</span>
			</div>
		</div>
	</div>
	<div class="next">
		<div class="all">
			<div>
				<span>充值金额:</span>
				<span>{{goodsPrice}}元</span>
			</div>
			
		</div>
		<div class="confirm" (click)="confirm()">
			<span>确认</span>
		</div>
	</div>
</ion-content>
